<?php

namespace App\Http\Controllers;

use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    protected function error($msg = true)
    {
        return ['error' => $msg];
    }

    protected function result(array $data)
    {
        $data['error'] = false;

        return $data;
    }
}
